home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 2 / MacMania 2.toast / Demo's / Tools&Utilities / Updaters / Symantec C++⁄MPW 6.0.1 / SCpp 6.0.1 Update / InstallUpdate
Encoding:
Text File  |  1993-09-22  |  1.2 KB  |  34 lines  |  [TEXT/MPS ]

  1. #    InstallUpdate
  2. #        Generate duplicate commands and optionally delete unnecessary files
  3. #    for the Symantec C++ for MPW 6.0.1 update.
  4. #
  5. #    Copyright © 1993 Symantec Corporation. All Rights Reserved.
  6.  
  7. Set Exit 0
  8. Set temp `GetFileName -d -b "Select"`
  9. If {Status} == 0
  10.     Confirm "Remove obsolete IOStreams and old streams sources?"
  11.     If {Status} == 0
  12.         Delete "{SCLibraries}"SCSrcLibCpp:iosst[1-5].cpp
  13.         Delete "{SCLibraries}"SCSrcLibCpp:in.cpp
  14.         Delete "{SCLibraries}"SCSrcLibCpp:out.cpp
  15.         Delete "{SCLibraries}"SCSrcLibCpp:circbuf.cpp
  16.         Delete "{SCLibraries}"SCSrcLibCpp:filebuf.cpp
  17.         Delete "{SCLibraries}"SCSrcLibCpp:stream.cpp
  18.     End
  19.     
  20.     # optionally install new version of some MacApp tools
  21.     Confirm "Install new version of MABuildTool and related files?"
  22.     If {Status} == 0
  23.         Duplicate -y "{temp}"MacApp:'Build Rules and Dependencies' "{MacApp}"Tools:
  24.         Duplicate -y "{temp}"MacApp:MAbuildTool "{MacApp}"Tools:
  25.         Duplicate -y "{temp}"MacApp:MABuildTool.p "{MacApp}"Tools:
  26.     End
  27.     
  28.     # generate Duplicate commands for the new/updates components
  29.     Backup -a -from "{temp}"SCIncludes: -to "{SCIncludes}"
  30.     Backup -a -r -from "{temp}"SCLibraries: -to "{SCLibraries}"
  31.     Backup -a -from "{temp}"SCBin: -to "{SCBin}"
  32. End
  33. Set Exit 1
  34.